require "pubenum"

--开奖类型
LotteryType = {
    LOTTERY_TYPE_SYSTEM_WIN = 1,   --系统必赢
    LOTTERY_TYPE_SYSTEM_LOSE = 2,  --系统必输
    LOTTERY_TYPE_NORMAL = 3,       --正常开奖
}

YYDBActionType = {
	ACTION_TYPE_UNKNOWN        = 0,
	ACTION_TYPE_BET	           = 1,        -- 下注
	ACTION_TYPE_CHANGE_SCORE   = 2,        -- 切换底注
}

YYDBGameType = {
    GAME_TYPE_QIANZHONG         = 1,       --权重玩法 
    GAME_TYPE_MANREN            = 2,       --定人数玩法
}

YYDBTableType = {
    TABLE_TYPE_UNKNOWN = 0,
    TABLE_TYPE_DIAMOND = 1,     ---自建钻石桌
    TABLE_TYPE_COIN = 2,
}


YYDBActionTime = {
    ACTION_TIME_BET = 6,	--下注时间 60秒
}

YYDBClassPool = {
    FIRST_CLASS = 1,        --一级奖池
    SECOND_CLASS = 2,       --二级奖池
}


YYDBTableState = {
    TABLE_STATE_UNKNOW = 0,
    TABLE_STATE_WAIT_PLAYER_SITDOWN = 1,   --等待玩家坐下
    TABLE_STATE_WAIT_ALL_READY = 2,        --等待所有玩家准备
    --等待游戏开始
    TABLE_STATE_WAIT_GAME_START = 3,       --等待游戏开始
    TABLE_STATE_GAME_START = 4,            --游戏开始
     --等待一局游戏开始
    TABLE_STATE_WAIT_ONE_GAME_START = 5,    --等待一局开始
    TABLE_STATE_ONE_GAME_START = 6,         --一局游戏开始
    --等待下注
    TABLE_STATE_WAIT_PLAYER_BET = 7,       --等待玩家下注
    TABLE_STATE_PLAYER_BET = 8,            --玩家下注
   --倒计时等待开奖
    TABLE_STATE_WAIT_OPENAWARD_COUNTDOWN = 9,   --等待开奖,播放倒计时
    TABLE_STATE_OPENAWARD_COUNTDOWN = 10,        --等待开奖,播放倒计时
    --开奖
    TABLE_STATE_WAIT_OPEN_AWARD = 11,          --等待开奖动画
    TABLE_STATE_OPEN_AWARD = 12,               --开奖,播放转动动画
    --处理开牌结果
    TABLE_STATE_WAIT_HANDLE_OPENAWARD_RESULT = 13,   --等待处理开奖结果
    TABLE_STATE_HANDLE_OPENAWARD_RESULT = 14,        --处理开奖结果
    --等待一局游戏结束
    TABLE_STATE_WAIT_ONE_GAME_END = 15,     --等待一局游戏结束
    TABLE_STATE_ONE_GAME_END = 16,          --一局游戏结束
    --等待一局游戏真正结束
    TABLE_STATE_WAIT_ONE_GAME_REAL_END = 17, --等待一局游戏真正结束
    TABLE_STATE_ONE_GAME_REAL_END = 18,      --一局游戏真正结束
    --等待游戏结束
    TABLE_STATE_WAIT_GAME_END = 19,          --等待游戏结束
    TABLE_STATE_GAME_END = 20,               --游戏结束
}

--座位状态
YYDBSeatState = {
	SEAT_STATE_UNKNOW = 0,
    SEAT_STATE_NO_PLAYER = 1,       --没有玩家
    SEAT_STATE_WAIT_READY = 2,      --等待准备
    SEAT_STATE_WAIT_START = 3,      --等待开局
    SEAT_STATE_WAIT_BET = 4,        --等待下注
    SEAT_STATE_PLAYING  = 5,        --游戏中
    SEAT_STATE_INGAME_WATCH = 6,    --游戏中旁观,即本局未下注
}

YYDBLAMPCOLOR = {
    ORANGE = "<color=#00ff00>%s</c>",
    RED = "<color=#ff0000>%s</c>",
    YELLOW = "<color=#ffff00>%s</c>",
    BLUE = "<color=#0000ff>%s</c>",
    GOLD = "<color=#ffd700>%s</c>",
    GREEN = "<color=#008b00>%s</c>",
}

YYDBSendHorseMap = {
    GET_MONEY_MIN = 5000,       ---大于等于50元发送跑马灯
}


--桌子删除原因
YYDBTableDeleteReason = {
    DELETE_REASON_UNKONW = 0,                         --未知原因
    DELETE_REASON_TABLE_NO_PLAYER = 1,                --桌子没有人被自动删除
    DELETE_REASON_SYSTEM_REQUIRE = 2,                 --系统强制要求删除
    DELETE_REASON_SYSTEM_ERROR = 3,                   --系统错误被删除
}


EGameName = "一元夺宝"



